package com.go8.mall;

import com.go8.mall.config.AlipayConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@SpringBootApplication(scanBasePackages = "com.go8")
@EnableConfigurationProperties(AlipayConfig.class)
@MapperScan({ "com.go8.sso.mapper", "com.go8.cms.mapper", "com.go8.goods.mapper", "com.go8.trade.mapper" })
public class MallApplication {
	public static void main(String[] args) {
        //解决netty冲突:redis的netty和es的冲突了
        System.setProperty("es.set.netty.runtime.available.processors", "false");
		SpringApplication.run(MallApplication.class, args);
	}

	/*@Bean
	public CartCache getCartCache() {
		return new CartCache();
	}*/
}
